package com.handl.springcloud.controller;

import com.handl.springcloud.service.TestFeignService;
import com.handl.springcloud.service.ZipkinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by handl on 2017/10/29.
 */
@RestController
public class TestFeignController {

    @Autowired
    private TestFeignService testFeignService;

    @Autowired
    private ZipkinService zipkinService;

    @RequestMapping("feignTest")
    public String getFeign(){
        return testFeignService.getFeign()+",Feigen Server";
    }

    @RequestMapping("toRibbon")
    public String zipkinServer(){
        return zipkinService.getFeign();
    }
}
